{include file='ajax.header.tpl'}
	<div id="options">
		<input type="button" value="{_ t="Save"}"     id="user_save" class="save">
		<input type="button" value="{_ t="Cancel"}"   id="user_cancel" class="cancel">
		<input type="button" value="{_ t="Eliminar"}" id="user_delete" class="delete">
	</div>

	<h1><img src="../public/icons/16x16/apps/users.png"/>{_ t="Usuario"} #{$user->id}</h1> 	

	<div id="icontent">
		<div id="blocks">&nbsp;</div>
		<div id="icontent-lang">
			<div id="user_working"></div>
			<form id="user_form" action="index.php?c=ajax_users&a=user_save&id={$user->id}" method="post">

			<b>{_ t="Nombre"}</b>
			<input type="text" value="{$user->name}" name="name">

			<b>{_ t="Apellido"}</b>
			<input type="text" value="{$user->lastname}" name="lastname">

			<b>{_ t="Email"}</b>
			<input type="text" value="{$user->mail}" name="email">

			<b>{_ t="Contrase&ntilde;a"}</b>
			<input type="text" value="" name="password">
			
			<b>{_ t="Perfil"}</b>	
			<select name="profile">
				{foreach from="$profiles" item="prf"}
				<option value="{$prf->id}" {if $user->profile_id == $prf->id}selected="selected"{/if}>{$prf->name}</option>
				{/foreach}
			</select>
			</form>
		</div>
	</div>
</div>
	
{tinyMCE width="350" height="300"}
<script type="text/javascript">
var ITEM_ID   = '{$user->id}';
user_init();
</script>
{include file='ajax.footer.tpl'}
